package com.zgs.mall.search.vo;

import com.zgs.common.to.es.SkuEsModel;
import lombok.Data;
import lombok.ToString;

import java.util.List;
@ToString
@Data
public class SearchResult {

    private List<SkuEsModel> products;
    private Integer pageNum;
    private Long total;//总记录数
    private Integer totalPages;//总页码
    private List<BrandVo> brands;//当前查询所有品牌
    private List<AttrVo> attrs;//当前查询所有属性
    private List<CatalogVo> catalogs;//当前查询所有分类
    @Data
    public static class BrandVo{
        private Long brandId;
        private String brandName;
        private String brandImg;
    }

    @Data
    public static class AttrVo{
        private Long attrId;
        private String attrName;
        private List<String> attrValue;
    }
    @Data
    public static class CatalogVo{
        private Long catalogId;
        private String catalogName;
    }
}
